package com.yuan.nacosconsumer.controller;

import com.yuan.nacosconsumer.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HelloController
 * @Description:
 * @Author yuan
 * @Date 2020/8/7 
 * @Version V1.0
 **/
@RestController
public class HelloController {

    @Autowired
    private FeignService feignService;

    @GetMapping(value = "hello")
    public String hello(@RequestParam String name){
        return feignService.hello(name);
    }
}
